package com.xpresso.utils.strings;

public class ArrayWorker {

	public static String getStringFromArray(String[] array, String delimiter){
		if (array == null){
			return null;
		}
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < array.length; i++){
			sb.append(array[i] + delimiter);
		}		
		return sb.toString();
	}
	
	public static String[] getArrayFromString(String theString, String delimiter){
		return theString.split(delimiter);
	}
	
}
